package com.ruoyi.feign.fallback;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.utils.file.FileUtils;
import com.ruoyi.feign.FileFeign;
import com.ruoyi.system.api.domain.SysFile;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

@Component
public class FileFeignFallback implements FileFeign {
    @Override
    public R<SysFile> upload(MultipartFile file) {
        SysFile sysFile = new SysFile();
        sysFile.setName("服务器维护中");
        return R.fail(sysFile);
    }
}
